package org.zhq.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Document(indexName = "foodie-items-ik", type = "doc", createIndex = false)
@Data
public class Items {
    @Id
    private String itemId;
    @Field(store = true, type = FieldType.Text)
    private String itemName;
    @Field(store = true, type = FieldType.Text, index = false)
    private String imgUrl;
    @Field(store = true, type = FieldType.Integer, index = false)
    private Integer price;
    @Field(store = true, type = FieldType.Integer, index = false)
    private Integer sellCount;
}
